package com.bym.openfeign;

import com.bym.openfeign.fallback.TestOrderServiceFallback;
import com.bym.openfeign.fallback.TestOrderServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "mall-order", path = "/test-order",
        fallback = TestOrderServiceFallback.class
//        fallbackFactory = TestOrderServiceFallbackFactory.class
)
public interface TestOrderService {

    @GetMapping("/hello")
    String hello();
}
